#ifndef OPENCV2QT_H
#define OPENCV2QT_H

/*! \author Guillaume Collombet */
/*! \file This file contains several helpers function to interface OpenCV datatypes with the Qt ones. */

#include <QImage>

#include "opencv2/opencv.hpp"

using namespace cv;

/*! \addtogroup Helper
 * \brief This module contains several helpers function to interface OpenCV datatypes with the Qt ones.
 *  @{
 */

/*!
 * \brief mat2QImage convert a `cv::Mat` to a `QImage`.
 * \param mat A `cv::Mat` image with format type equals to `CV_8UC1` or `CV_8UC3`
 * \return
 */
QImage mat2QImage(const Mat& mat);

  /*! @} */

#endif // OPENCV2QT_H
